<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
 <head>
  <title>商品分类规格</title>
  <t:base type="jquery,easyui,tools,DatePicker"></t:base>
 </head>
 <body style="overflow-y: hidden" scroll="no">
  <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="mallProductCategorySpecController.do?save">
			<input id="id" name="id" type="hidden" value="${mallProductCategorySpecPage.id }">
	  		<input  name="categoryid" type="hidden" value="${mallProductCategorySpecPage.categoryid}" >
			<table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
				<tr>
					<td align="right">
						<label class="Validform_label">
							规格名称:
						</label>
					</td>
					<td class="value">
						<input class="inputxt" id="name" name="name" 
							   value="${mallProductCategorySpecPage.name}" datatype="*"
							   <c:if test="${mallProductCategorySpecPage.id == null }"> ajaxurl="mallProductCategorySpecController.do?chkspecname&cateid=${mallProductCategorySpecPage.categoryid}"
								</c:if>
							   >
						<span class="Validform_checktip"></span>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							数据类型:
						</label>
					</td>
					<td class="value">
						<select name="datatypeid" datatype="*">
							<c:forEach var="datatype" items="${datatype}">
								<option value="${datatype.id}" <c:if test="${datatype.id == mallProductCategorySpecPage.datatypeid }">selected="selected"</c:if> >${datatype.datatypename}</option>
							</c:forEach>
						</select>
						<%--<input class="inputxt" id="datatypeid" name="datatypeid"
							   value="${mallProductCategorySpecPage.datatypeid}" datatype="n">--%>
						<span class="Validform_checktip"></span>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							单位:
						</label>
					</td>
					<td class="value">
						<input class="inputxt" id="unit" name="unit" 
							   value="${mallProductCategorySpecPage.unit}" >
						<span class="Validform_checktip"></span>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							状态:
						</label>
					</td>
					<td class="value">
						<select name="status">
							<option value="1" <c:if test="${mallProductCategorySpecPage.status == 1 }">selected="selected"</c:if>>启用</option>
							<option value="0" <c:if test="${mallProductCategorySpecPage.status == 0 }">selected="selected"</c:if>>禁用</option>
						</select>
					</td>
				</tr>
			</table>
		</t:formvalid>
 </body>